package co.edu.unal.franquicias.visa.activities;

import java.util.Date;

import co.edu.unal.franquicias.visa.domain.CreditCard;
import co.edu.unal.franquicias.visa.domain.CreditCardTransaction;
import co.edu.unal.franquicias.visa.domain.ValidationStatus;
import co.edu.unal.franquicias.visa.representations.CreditCardTransactionRepresentation;
import co.edu.unal.franquicias.visa.representations.RestUri;

public class SimulateOrderActivity {

	
	public CreditCardTransactionRepresentation simulate(RestUri visaUri){
		
		
		CreditCard card = new CreditCard();
		card.setDate(new Date());
		card.setNameOnCard("Jhon");
		card.setNumber("333333333");
		card.setVerificationCode("027");
		
		CreditCardTransaction transaction = new CreditCardTransaction(card, new Float(125), new Date(), ValidationStatus.UNKNOWN);
		
		return CreditCardTransactionRepresentation.createResponseTransactionRepresentation(transaction, visaUri);
	}
	
}
